﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TekaMUD.Engine.Commands;

using TekaMUD.Engine.Blocks;
using TekaMUD.Engine.ServerTasks;

namespace TekaMUD.Engine
{
	public class ServerTasksQueue
	{
		private static BlockingQueue<Task> queue = new BlockingQueue<Task>();
		private static object SyncRoot = new object();

		static ServerTasksQueue()
		{
		}

		public static void EnqueueTask(Task cmd)
		{
			queue.Enqueue(cmd);
		}

		public static Task DequeueTask()
		{
			return queue.Dequeue();
		}
	}
}
